package xyz.playedu.api.request.backend;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * @author chenguiying
 * @since 2024/7/24 17:39
 */
@Data
public class CourseChapterHourRequest {
    @Data
    public static class HourItem {
        @JsonProperty("chapter_id")
        private Integer chapterId;

        private String title;
        private Integer duration;
        private Integer sort;
        private String type;
        private Integer rid;
        private Integer id;
    }
    @Data
    public static class chapterHourItem {
        private Integer id;
        private String name;
        private Integer sort;
        private List<HourItem> hours;
    }

    private List<HourItem> hours;

    private List<chapterHourItem> chapterHours;
}
